<!--
 * @Author: your name
 * @Date: 2022-02-15 09:30:20
 * @LastEditTime: 2022-02-16 15:08:46
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \web-vue\src\App.vue
-->
<template>
  <div id="app">
    <!-- <img src="./assets/logo.png"> -->
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  watch:{
    $route(to,from){
      console.log("to")
      console.log(to)
      if(to.path!='/login'){
        let obj = {
          name:to.name,
          title:to.meta.title
        }

        this.$store.commit("addTab",obj)
      }
    }
  }
}
</script>

<style>
/* #app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */
</style>
